home *** CD-ROM | disk | FTP | other *** search
- #ifndef _OFFSCREENSHELL_H_
- #define _OFFSCREENSHELL_H_
-
- /* Constant Declarations */
- #define WWIDTH 470
- #define WHEIGHT 330
-
- #define WLEFT (((screenBits.bounds.right - screenBits.bounds.left) - WWIDTH) / 2)
- #define WTOP (((screenBits.bounds.bottom - screenBits.bounds.top) - WHEIGHT) / 2)
-
- #define HiWrd(aLong) (((aLong) >> 16) & 0xFFFF)
- #define LoWrd(aLong) ((aLong) & 0xFFFF)
-
-
-
- enum {
- mApple = 128,
- mFile,
- mPalette
- } ;
-
- enum {
- iAbout = 1
- } ;
- enum {
- iOpen = 1,
- iClose,
- iUnused1,
- iSave = 4,
- iUnused2,
- iQuit = 6
- } ;
-
- enum {
- iUsePictPalette = 1
- } ;
-
- static Boolean gQuitFlag = false ;
- static Point gStaggerPos = {50,50} ;
- static Boolean gUsePictPalette = true ;
-
- // function prototypes
-
- void InitToolbox( void ) ;
- void MainEventLoop( void ) ;
- void HandleKeyPress(EventRecord *event) ;
- void HandleOSEvent(EventRecord *event) ;
- void HandleMenuCommand(long menuResult) ;
- PicHandle DoReadPICT( short theRef, OSErr *theErr ) ;
- OSErr DoCreateWindow( PicHandle thePicture ) ;
- void AdjustMenus( void ) ;
-
-
- const RGBColor kRGBBlack = {0, 0, 0};
- const RGBColor kRGBWhite = {0xFFFF, 0xFFFF, 0xFFFF};
-
-
- #endif